<script setup>
import {computed, defineProps, ref,onMounted,onUnmounted} from "vue";
let props = defineProps(["label"]);
let cptLabel = computed(()=>{
    if(props.label.indexOf("other.")===0){
      return props.label.substring(props.label.indexOf(".")+1);
    }else if(props.label.indexOf("default.")===0){
        return props.label.substring(props.label.indexOf("."));
    }else{
        return props.label;
    }
})

onMounted(()=>{
    // console.log("CommonTagDisplay mounted with,",props.label);
})

onUnmounted(()=>{
    // console.log("CommonTagDisplay unMounted with,",props.label);
})
</script>

<template>
{{cptLabel}}
</template>